﻿using Microsoft.Extensions.Hosting;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;

namespace BasicLoggerModule
{
    public class ConsoleHostService : IHostedService
    {
        //public HellowoldService hellowoldService { get; set; }

        //ublic IMessageShow messageShow { get; set; }

        public ILogger<ConsoleHostService> Logger { get; set; }

        public Task StartAsync(CancellationToken cancellationToken)
        {
            //Console.WriteLine("启动了");
            //messageShow.Show();
            //hellowoldService.Show();
            //while (true) {
            //    Logger.LogInformation("log4net");
            //}
            return Task.CompletedTask;
        }

        public Task StopAsync(CancellationToken cancellationToken)
        {
            return Task.CompletedTask;
        }
    }
}
